<!DOCTYPE html>
<html>
<!-- Mirrored from www.zi-han.net/theme/hplus/table_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>{:C('WEB_TITLE')}</title>
    <meta name="keywords" content="{:C('WEB_KEYWORDS')}">
    <meta name="description" content="{:C('WEB_DESC')}">
    <!-- Sweet Alert -->
    <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
    <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
</head>
<style>
    table,tr,th{
        text-align: center;
    }
</style>
<style>
    .pages{
        text-align: center;
    }
    .pages a,.pages span {
        display:inline-block;
        padding:2px 5px;
        margin:0 1px;
        border:1px solid #f0f0f0;
        -webkit-border-radius:3px;
        -moz-border-radius:3px;
        border-radius:3px;
    }
    .pages a,.pages li {
        display:inline-block;
        list-style: none;
        text-decoration:none; color:#58A0D3;
    }
    .pages a.first,.pages a.prev,.pages a.next,.pages a.end{
        margin:0;
    }
    .pages a:hover{
        border-color:#50A8E6;
    }
    .pages span.current{
        background:#50A8E6;
        color:#FFF;
        font-weight:700;
        border-color:#50A8E6;
    }

    .prev, .next {
        padding: 2px;
        border: 1px solid #adabab;
        color: #505050;
    }
    .num {
        padding: 2px 7px;
        margin: 0 3px;
        border: 1px solid #adabab;
        color: #505050;
    }
    .current {
        padding: 2px 7px;
        margin: 0 3px;
        border: 1px solid #adabab;
        color: #ffffff;
        background-color: #8e8d8d;
    }
</style>
<!--<div class="pages">-->
<!--{$page}-->
<!--</div>-->
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-6">
            <a style="width: 100px" class="col-sm-2 J_menuItem width-20 pull-right btn btn-sm btn-primary" href="{:U('Team/add')}" > 队伍建设添加</a>
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>队伍建设列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content" style="text-align: center">

                    <table class="table table-striped">
                        <tr>
                            <th>ID</th>
                            <th>文章标题</th>
                            <th>浏览量</th>
                            <th>点赞数</th>
                            <th>发布时间</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="team" item="v" key="k">
                            <tr>
                                <td style="width:10%;">{$v.id}</td>
                                <td style="width:40%;">{$v.title}</td>
                                <td style="width:10%;">{$v.read_num}</td>
                                <td style="width:10%;">{$v.praise}</td>
                                <td style="width:10%;">{$v.update_time}</td>
                                <td style="width: 20%;">
                                    <button type="button" class="btn btn-white btn-sm" data-toggle="modal" data-target="#myModa{$k}"><i class="fa fa-folder"></i> 查看 </button>
                                    <div class="modal inmodal" id="myModa{$k}" tabindex="-1" role="dialog"  aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content animated fadeIn">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                                    <h4 class="modal-title">{$v.title}</h4>
                                                </div>
                                                <div class="modal-body">
                                                    <p>{$v.content}</p>
                                                </div>
                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <a href="{:U('team/upd')}&id={$v.id}" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>
                                    <a class="btn btn-white btn-sm qwq" datas="{$v.id}"  onclick=" return false;"><i class="fa fa-close"></i> 删除 </a>
                                </td>
                            </tr>
                        </foreach>
                    </table>
                    {$page}

                </div>

            </div>
        </div>
    </div>
</div>

<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>
<script src="__PUBLIC__/js/plugins/sweetalert/sweetalert.min.js"></script>

</body>
<script>
    $('.qwq').click(function (e) {
        swal({
            title: "您确定要删除这条信息吗",
            text: "删除后将无法恢复，请谨慎操作！",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "删除",
            cancelButtonText: "取消",
            closeOnConfirm: false
        }, function () {
            var a = e.currentTarget.getAttribute('datas');
            $url = "{:U('team/del')}";
            $data = {'id':a};
            $.post($url,$data,function(env){
                if(env == 'success') {
                    swal("删除成功！", "您已经永久删除了这条信息。", "success");
                    setTimeout(function () {
                        window.history.go(0);
                    },2000)
                } else {
                    swal("删除失败！", "请联系技术人员！。", "error");
                    setTimeout(function () {
                        window.history.go(0);
                    },4000)
                }
            },'json');

        });
    });
</script>

<!-- Mirrored from www.zi-han.net/theme/hplus/table_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
</html>
